package org.footito.android.tools;

import java.util.Comparator;

import org.footito.android.data.TeamGroup;

public class GroupsComparator implements Comparator<TeamGroup> {

	@Override
	public int compare(TeamGroup group1, TeamGroup group2) {
//		if (group1 == null || group2 == null)
//			return -1;
//		else {
//			if (group1.getId() == group2.getId())
//				return 0;
//			else if (group1.getId() < group2.getId())
//				return -1;
//			else
//				return 1;
//		}
		return(group1.getName().compareTo(group2.getName()));
	}
}
